﻿@using Microsoft.Health.Web.Mvc
@using Microsoft.Health.ItemTypes
@model BasicV2

@{
    ViewBag.Title = "Basic information";
    var addBasicUrl = HealthVault.Shell.Url(
        ViewContext, 
        "VIEWITEMS", 
        new { typeid = BasicV2.TypeId, additem = true });
}

<h2>Basic information</h2>
@if (Model == null)
{
    <p>
        You don't have any basic information! <a href="@addBasicUrl">Add some!</a>
    </p>
}
else
{ 
    <p>
        @(User.PersonInfo().SelectedRecord.DisplayName) was born in @(Model.BirthYear)!
    </p>
}